package com.example.common.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @name: AccessLimit
 * @description: 接口防刷
 * @author: xw.s
 * @date: 2021/5/31-16:18
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessLimit {
    int seconds() default 10;
    int maxCount() default 20;
    String[] freeIpAddr() default {};
}
